package com.aiti.lulian.mapper.newCard;

import com.aiti.lulian.entity.newCard.CardMessage;
import com.aiti.lulian.vo.newCard.CardMessageVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardMessageMapper extends BaseMapper<CardMessage> {

    List<CardMessageVo> selectCardMessagePage(Page<CardMessage> page, @Param("cardId") String cardId);

    int selectMessageCount(@Param("cardId") String cardId);
}
